<!--
Version 0.1
SEMF - Web Desiging Framework for Sport Event Managment
Copyright (C) 2006, SEMF Developers

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

-->
<html>
<body>
<?php
$from_parent = 1;

$project_dir = (isset($_GET["project_dir"]))?$_GET["project_dir"]:$_POST["project_dir"];
$from_url = "project_home/index.php";
$semf_root = "../";
//$_GET["user_token"] = "";
include_once('../core/lib/login_checker.php');

$funct_name = $_GET['func'];
$params = "";
for($i = 1; $_GET['param'.$i] != NULL; $i ++)
{
	if($params != "")
		$params.= ",";
	$params .= "'".$_GET['param'.$i]."'";
}
$status = $_GET['status'];

echo $status;
?>
<script language="javascript">
function init()
{
	var status = <?php echo $status; ?>;
	var funct_name = "<?php echo $funct_name ?>";
	var params = "<?php echo $params ?>";
	if(status != parent.panelStatus)
	{
		//just call the function
		eval("parent."+funct_name+"("+params+")");
	}
	//alert(funct_name);
	//alert(params);
}
init();
</script>
</body>
</html>